package JVM;

import java.util.*;

/**
 * @Author zhangxuhui
 * @Date 2024/12/4
 * @email zxh_1633@163.com
 */
public class CollectionTest {
    public static void main(String[] args) {
        List l = new ArrayList();
        l.add(null);
        l.add(null);
        l.add(null);
        for (int i = 0; i < l.size(); i++) {
            System.out.println(l.get(i));
        }
        System.out.println("----------");
        Set s = new HashSet();
        s.add(null);
        s.add(null);
        Iterator iterator = s.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

        List l2 = new LinkedList();
    }
}
